package com.barneyx.mshinfoplatform.entity.enums;

import lombok.Getter;

@Getter
public enum EFavoriteType implements IEnum<String> {
    INFO(100, "INFO");

    private final int code;
    private final String value;

    EFavoriteType(int code, String value) {
        this.code = code;
        this.value = value;
    }


    public static EFavoriteType StrTo(String value) {
        for (EFavoriteType e : EFavoriteType.values()) {
            if (e.getValue().equals(value)) return e;
        }
        return null;
    }
}
